import Layout from '@/page/index/'

export default [{
  path: '/',
  component: Layout,
  redirect: '/wel',
  children: [{
    path: '/wel',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel')
  }, {
    path: '/baxi-ice-map',
    component: () => import('@/views/orderManage/baxi-ice-map/index'),
    name: '八喜雪糕地图',
    meta: {
      isAuth: false,
    }
  },]
}, {
  path: '/test',
  component: Layout,
  redirect: '/test/index',
  children: [{
    path: 'index',
    name: '测试页',
    meta: {
      i18n: 'test'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/test')
  }]
  },
  {
    path: '/orderdetail',
    component: Layout,
    redirect: '/orderdetail/index',
    children: [{
      path: 'index',
      name: '详情',
      meta: {
        i18n: 'orderdetail',
        hideLeftMenu: true,
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/components/order-detail/orderdetail')
    }]
  },
  {
    path: '/viewOrdInfor',
    component: Layout,
    redirect: '/viewOrdInfor/index',
    children: [{
      path: 'index',
      name: '查看订单',
      meta: {
        i18n: 'viewOrdInfor',
        hideLeftMenu: true,
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/components/order-detail/viewOrdInfor')
    }]
  },
  {
    path: '/SMSrecord',
    component: Layout,
    redirect: '/SMSrecord/index',
    children: [{
      path: 'index',
      name: '短信记录',
      meta: {
        i18n: 'SMSrecord',
        hideLeftMenu: true,
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/components/order-detail/SMSrecord')
    }]
  },
  {
    path: '/copyOrder',
    component: Layout,
    redirect: '/copyOrder/index',
    children: [{
      path: 'index',
      name: '复制订单',
      meta: {
        i18n: '复制订单',
        hideLeftMenu: true,
      },
      component: () => import( /* webpackChunkName: "page" */ '@/views/copy'),
    }]
  },
  {
    path: '/replenishCopyOrder',
    component: Layout,
    redirect: '/replenishCopyOrder/index',
    children: [{
      path: 'index',
      name: '异常补单复制订单',
      meta: {
        hideLeftMenu: true,
      },
      component: () => import( /* webpackChunkName: "page" */ '@/views/copy'),
    }]
  },
// {
//     path: '/orderdetail',
//     name: '详情',
//     component: () =>
//         import( /* webpackChunkName: "page" */ '@/components/order-detail/orderdetail'),
//     meta: {
//         keepAlive: true,
//         isTab: false,
//         isAuth: false
//     }
// },
  {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
      path: 'index',
      name: '个人信息',
      meta: {
        i18n: 'info'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/user/info')
    }]
  },
  {
    path: '/added-page',
    component: Layout,
    redirect: '/added-page/approval',
    children: [{
      path: 'approval',
      name: '审批',
      meta: {
        i18n: 'approval',
        hideLeftMenu: true,
      },
      component: () =>
        import('@/views/system/added-services/approval')
    }]
  },
  {
    path: '/developer',
    component: Layout,
    redirect: '/developer/index',
    children: [{
      path: 'index',
      name: '开发者配置',
      meta: {
        i18n: 'index',
        keepAlive: true,
      },
      component: () =>
        import('@/views/developer')
    }]
  },
  {
    path: '/livePromotion',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/page/livePromotion/index'),
    name: 'livePromotion',
    meta: {
        i18n: 'livePromotion',
        keepAlive: true,
        isTab: false,
        isAuth: false
    }
  },
  {
    path: '/orderList',
    component: () => import('@/views/orderManage/order-list/index'),
    name: 'orderList',
    meta: {
        isTab: false,
        isAuth: false
    }
  },
]
